package cn.terminus.client.customer.customleaseinfo.service;

import java.util.Date;

import cn.terminus.client.customer.customleaseinfo.param.CustomLeaseInfoNewParam;
import cn.terminus.client.customer.customleaseinfo.param.CustomLeaseInfoEditParam;
import cn.terminus.client.customer.customleaseinfo.param.CustomLeaseInfoQueryParam;
import cn.terminus.client.customer.customleaseinfo.param.CustomLeaseInfoDeleteParam;
import cn.terminus.client.customer.customleaseinfo.param.CustomLeaseInfoGetsParam;
import cn.terminus.client.customer.customleaseinfo.result.CustomLeaseInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (CustomLeaseInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:56
 */
public interface CustomLeaseInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(CustomLeaseInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(CustomLeaseInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomLeaseInfoResult>> gets(CustomLeaseInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(CustomLeaseInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomLeaseInfoResult>> query(CustomLeaseInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<CustomLeaseInfoResult>> page(CustomLeaseInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
